package com.springcloud.providers.servcie.impl;

import com.springcloud.api.entities.ArticleEntity;
import com.springcloud.providers.dao.ArticleDao;
import com.springcloud.providers.servcie.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleDao articleDao;

    public List<ArticleEntity> findAll(){
        return articleDao.findAll();
    }
}
